package gui.treenodes;

import core.Transaction;

public class TransactionNode implements TransactionTreeNode
{
	private Transaction transaction;
	
	public TransactionNode(Transaction transaction){
		this.transaction = transaction;
	}
	
	@Override public double getAmmount(){
		return transaction.getAmmount();
	}

	public Transaction getTransaction(){
		return transaction;
	}
	
	@Override public String toString(){
		return transaction.getDescription();
	}
}
